package com.youku.plugins.logo
{
   import com.youku.interfaces.IPlugin;
   import com.youku.plugins.logo.view.LogoMediator;
   import flash.display.MovieClip;
   import com.youku.interfaces.IPlayerProxy;
   import flash.net.registerClassAlias;
   
   public class LogoFacade extends Object implements IPlugin
   {
      
      public function LogoFacade() {
         super();
      }
      
      private static var _instance:LogoFacade;
      
      public static function getInstance() : LogoFacade {
         if(_instance == null)
         {
            _instance = new LogoFacade();
         }
         return _instance as LogoFacade;
      }
      
      private var _logoMediator:LogoMediator;
      
      public function init(param1:MovieClip, param2:IPlayerProxy) : void {
         this.registerSkin();
         this._logoMediator = new LogoMediator(param1,param2);
      }
      
      private function registerSkin() : void {
         registerClassAlias("W_Youku_Logo",W_Youku_Logo);
      }
   }
}
